import request from '/@/utils/request';
// 组织架构=========================================
/*** 
 * 获取机构列表 (带分页)
 * @author jeff
 * @date 2022/12/2
 */
export const getOrgPage = (params?: object) => {
	return request({
		url: '/sysOrg/page',
		method: 'get',
		params: params,
	});
}

/*** 
 * 获取机构列表 (不带分页)
 * @author jeff
 * @date 2022/12/2
 */
export const getOrgList = (params?: object) => {
	return request({
		url: '/sysOrg/list',
		method: 'get',
		params: params,
	});
}

/*** 
 * 获取机构树
 * @author jeff
 * @date 2022/12/2
 */
 export const getOrgTree = (params?: object) => {
	return request({
		url: '/sysOrg/tree',
		method: 'get',
		params: params,
	});
}

/*** 
 * 新增机构
 * @author jeff
 * @date 2022/12/2
 */
 export const sysOrgAdd = (params?: object) => {
	return request({
		url: '/sysOrg/add',
		method: 'post',
		data: params,
	});
}

/*** 
 * 编辑机构
 * @author jeff
 * @date 2022/12/2
 */
 export const sysOrgEdit = (params?: object) => {
	return request({
		url: '/sysOrg/edit',
		method: 'post',
		data: params,
	});
}

/*** 
 * 删除机构
 * @author jeff
 * @date 2022/12/2
 */
 export const sysOrgDelete = (params?: object) => {
	return request({
		url: '/sysOrg/delete',
		method: 'post',
		data: params,
	});
}
// 组织架构=========================================

// 角色管理=========================================
/*** 
 * 获取机构列表 (带分页)
 * @author jeff
 * @date 2022/12/2
 */
 export const getRolePage = (params?: object) => {
	return request({
		url: '/sysRole/page',
		method: 'get',
		params: params,
	});
}

/*** 
 * 新增机构
 * @author jeff
 * @date 2022/12/2
 */
 export const sysRoleAdd = (params?: object) => {
	return request({
		url: '/sysRole/add',
		method: 'post',
		data: params,
	});
}

/*** 
 * 编辑机构
 * @author jeff
 * @date 2022/12/2
 */
 export const sysRoleEdit = (params?: object) => {
	return request({
		url: '/sysRole/edit',
		method: 'post',
		data: params,
	});
}

/*** 
 * 删除机构
 * @author jeff
 * @date 2022/12/2
 */
 export const sysRoleDelete = (params?: object) => {
	return request({
		url: '/sysRole/delete',
		method: 'post',
		data: params,
	});
}
// 角色管理=========================================

// 授权菜单=========================================
/*** 
 * 获取系统菜单树，用于给角色授权时选择
 * @author jeff
 * @date 2022/12/2
 */
 export const SysMenuTreeForGrant = (params?: object) => {
	return request({
		url: '/sysMenu/treeForGrant',
		method: 'get',
		params: params,
	});
}

/*** 
 * 授权菜单
 * @author jeff
 * @date 2022/12/2
 */
 export const sysRoleGrantMenu = (params?: object) => {
	return request({
		url: '/sysRole/grantMenu',
		method: 'post',
		data: params,
	});
}

/*** 
 * 拥有菜单
 * @author jeff
 * @date 2022/12/2
 */
 export const sysRoleOwnMenu = (params?: object) => {
	return request({
		url: '/sysRole/ownMenu',
		method: 'get',
		params: params,
	});
}

/*** 
 * 获取字典类型下所有字典，举例，返回格式为：[{code:"M",value:"男"},{code:"F",value:"女"}]
 * @author jeff
 * @date 2022/12/2
 */
 export const sysDictTypeDropDown = (params?: object) => {
	return request({
		url: '/sysDictType/dropDown',
		method: 'get',
		params: params,
	});
}

/*** 
 * 拥有数据
 * @author jeff
 * @date 2022/12/2
 */
 export const sysRoleOwnData = (params?: object) => {
	return request({
		url: '/sysRole/ownData',
		method: 'get',
		params: params,
	});
}

/*** 
 * 授权数据
 * @author jeff
 * @date 2022/12/2
 */
 export const sysRoleGrantData = (params?: object) => {
	return request({
		url: '/sysRole/grantData',
		method: 'post',
		data: params,
	});
}

// 授权菜单=========================================

/*** 
 * 获取用户列表 (带分页)
 * @author jeff
 * @date 2022/12/2
 */
 export const getUserPage = (params?: object) => {
	return request({
		url: '/sysUser/page',
		method: 'get',
		params: params,
	});
}

/*** 
 * 增加用户
 * @author jeff
 * @date 2022/12/2
 */
 export const sysUserAdd = (params?: object) => {
	return request({
		url: '/sysUser/add',
		method: 'post',
		data: params,
	});
}

/*** 
 * 编辑用户
 * @author jeff
 * @date 2022/12/2
 */
 export const sysUserEdit = (params?: object) => {
	return request({
		url: '/sysUser/edit',
		method: 'post',
		data: params,
	});
}

/*** 
 * 重置密码
 * @author jeff
 * @date 2022/12/2
 */
 export const sysUserResetPwd = (params?: object) => {
	return request({
		url: '/sysUser/resetPwd',
		method: 'post',
		data: params,
	});
}

/*** 
 * 修改状态
 * @author jeff
 * @date 2022/12/2
 */
 export const sysUserChangeStatus = (params?: object) => {
	return request({
		url: '/sysUser/changeStatus',
		method: 'post',
		data: params,
	});
}

/*** 
 * 拥有角色
 * @author jeff
 * @date 2022/12/2
 */
 export const sysUserOwnRole = (params?: object) => {
	return request({
		url: '/sysUser/ownRole',
		method: 'get',
		params: params,
	});
}

/*** 
 * 授权角色
 * @author jeff
 * @date 2022/12/2
 */
 export const sysUserGrantRole = (params?: object) => {
	return request({
		url: '/sysUser/grantRole',
		method: 'post',
		data: params,
	});
}

/*** 
 * 授权数据
 * @author jeff
 * @date 2022/12/2
 */
 export const sysUserGrantData = (params?: object) => {
	return request({
		url: '/sysUser/grantData',
		method: 'post',
		data: params,
	});
}

/*** 
 * 拥有数据
 * @author jeff
 * @date 2022/12/2
 */
 export const sysUserOwnData = (params?: object) => {
	return request({
		url: '/sysUser/ownData',
		method: 'get',
		params: params,
	});
}

/*** 
 * 拥有数据
 * @author jeff
 * @date 2022/12/2
 */
 export const sysUserDelete = (params?: object) => {
	return request({
		url: '/sysUser/delete',
		method: 'post',
		data: params,
	});
}

/*** 
 * 查询系统职位
 * @author jeff
 * @date 2022/12/2
 */
 export const sysPosPage = (params?: object) => {
	return request({
		url: '/sysPos/page',
		method: 'get',
		params: params,
	});
}

/*** 
 * 删除系统职位
 * @author jeff
 * @date 2022/12/2
 */
 export const sysPosDelete = (params?: object) => {
	return request({
		url: '/sysPos/delete',
		method: 'post',
		data: params,
	});
}

/*** 
 * 编辑系统职位
 * @author jeff
 * @date 2022/12/2
 */
 export const sysPosEdit = (params?: object) => {
	return request({
		url: '/sysPos/edit',
		method: 'post',
		data: params,
	});
}

/*** 
 * 添加系统职位
 * @author jeff
 * @date 2022/12/2
 */
 export const sysPosAdd = (params?: object) => {
	return request({
		url: '/sysPos/add',
		method: 'post',
		data: params,
	});
}

/*** 
 * 查询系统通知公告
 * @author jeff
 * @date 2022/12/2
 */
 export const sysNoticePage = (params?: object) => {
	return request({
		url: '/sysNotice/page',
		method: 'get',
		params: params,
	});
}

/*** 
 * 删除系统通知公告
 * @author jeff
 * @date 2022/12/2
 */
 export const sysNoticeDelete = (params?: object) => {
	return request({
		url: '/sysNotice/delete',
		method: 'post',
		data: params,
	});
}

/*** 
 * 删除系统通知公告
 * @author jeff
 * @date 2022/12/2
 */
 export const sysFileInfoUploadEditor = (params?: object) => {
	return request({
		url: '/sysFileInfo/uploadEditor',
		method: 'post',
		data: params,
	});
}

/*** 
 * 用户选择器
 * @author jeff
 * @date 2022/12/2
 */
 export const sysUserSelector = (params?: object) => {
	return request({
		url: '/sysUser/selector',
		method: 'get',
		params: params,
	});
}

/*** 
 * 用户选择器
 * @author jeff
 * @date 2022/12/2
 */
 export const sysNoticeAdd = (params?: object) => {
	return request({
		url: '/sysNotice/add',
		method: 'post',
		data: params,
	});
}

/*** 
 * 编辑系统通知公告
 * @author jeff
 * @date 2022/12/2
 */
 export const sysNoticeEdit = (params?: object) => {
	return request({
		url: '/sysNotice/edit',
		method: 'post',
		data: params,
	});
}

/*** 
 * 通知公告详情
 * @author jeff
 * @date 2022/12/2
 */
 export const sysNoticeDetail = (params?: object) => {
	return request({
		url: '/sysNotice/detail',
		method: 'get',
		params: params,
	});
}

/*** 
 * 修改状态
 * @author jeff
 * @date 2022/12/2
 */
 export const sysNoticeChangeStatus = (params?: object) => {
	return request({
		url: '/sysNotice/changeStatus',
		method: 'post',
		data: params,
	});
}

/*** 
 * 获取员工选择器(下拉框)
 * @author jeff
 * @date 2022/12/2
 */
 export const sysEmpSelector = (params?: object) => {
	return request({
		url: '/sysEmp/selector',
		method: 'get',
		params: params,
	});
}

/*** 
 * 查询访问日志
 * @author jeff
 * @date 2022/12/2
 */
 export const sysVisLogPage = (params?: object) => {
	return request({
		url: '/sysVisLog/page',
		method: 'get',
		params: params,
	});
}

/*** 
 *  * 根据枚举名称获取枚举数据，返回格式为：[{code:"M",value:"男"},{code:"F",value:"女"}]
 * @author jeff
 * @date 2022/12/2
 */
 export const sysEnumDataList = (params?: object) => {
	return request({
		url: '/sysEnumData/list',
		method: 'get',
		params: params,
	});
}

/*** 
 *  * 清空访问日志
 * @author jeff
 * @date 2022/12/2
 */
 export const sysVisLogDelete = (params?: object) => {
	return request({
		url: '/sysLogVis/clear',
		method: 'post',
		data: params,
	});
}

/*** 
 * 分页获取审核功能
 * @author jeff
 * @date 2022/12/2
 */
 export const sysCheckfuncPage = (params?: object) => {
	return request({
		url: '/sysCheckfunc/page',
		method: 'get',
		params: params,
	});
}

/*** 
 *  * 删除审核功能
 * @author jeff
 * @date 2022/12/2
 */
 export const sysCheckfuncDelete = (params?: object) => {
	return request({
		url: '/sysCheckfunc/delete',
		method: 'post',
		data: params,
	});
}

/*** 
 *  * 添加审核功能
 * @author jeff
 * @date 2022/12/2
 */
 export const sysCheckfuncAdd = (params?: object) => {
	return request({
		url: '/sysCheckfunc/add',
		method: 'post',
		data: params,
	});
}

/*** 
 *  * 修改审核功能
 * @author jeff
 * @date 2022/12/2
 */
 export const sysCheckfuncEdit = (params?: object) => {
	return request({
		url: '/sysCheckfunc/edit',
		method: 'post',
		data: params,
	});
}

/*** 
 * 分页查询提醒人员
 * @author jeff
 * @date 2022/12/2
 */
 export const sysCheckfuncQuery = (params?: object) => {
	return request({
		url: '/sysCheckfunc/query_ccpeople',
		method: 'get',
		params: params,
	});
}

/*** 
 * 新增提醒人员
 * @author jeff
 * @date 2022/12/2
 */
 export const sysCheckfuncAddCcPeople = (params?: object) => {
	return request({
		url: '/sysCheckfunc/add_ccpeople',
		method: 'post',
		data: params,
	});
}

/*** 
 * 分页获取审核流程
 * @author jeff
 * @date 2022/12/2
 */
 export const sysCheckflowPage = (params?: object) => {
	return request({
		url: '/sysCheckflow/page',
		method: 'get',
		params: params,
	});
}

/*** 
 * 审核流程下拉框
 * @author jeff
 * @date 2022/12/2
 */
 export const sysCheckflowGetFlowSelector = (params?: object) => {
	return request({
		url: '/sysCheckflow/getFlowSelector',
		method: 'get',
		params: params,
	});
}

/*** 
 * 审核功能下拉框
 * @author jeff
 * @date 2022/12/2
 */
 export const sysCheckfuncGetFuncSelector = (params?: object) => {
	return request({
		url: '/sysCheckfunc/getFuncSelector',
		method: 'get',
		params: params,
	});
}

/*** 
 * 新增审核流程
 * @author jeff
 * @date 2022/12/2
 */
 export const sysCheckflowAdd = (params?: object) => {
	return request({
		url: '/sysCheckflow/add',
		method: 'post',
		data: params,
	});
}

/*** 
 * 修改审核流程
 * @author jeff
 * @date 2022/12/2
 */
 export const sysCheckflowEdit = (params?: object) => {
	return request({
		url: '/sysCheckflow/edit',
		method: 'post',
		data: params,
	});
}

/*** 
 * 修改审核流程
 * @author jeff
 * @date 2022/12/2
 */
 export const sysCheckflowDelete = (params?: object) => {
	return request({
		url: '/sysCheckflow/delete',
		method: 'post',
		data: params,
	});
}

/*** 
 * 分页获取自动派发_类别设置
 * @author jeff
 * @date 2022/12/2
 */
 export const cgDistributeTypePage = (params?: object) => {
	return request({
		url: '/cgDistributeType/page',
		method: 'get',
		params: params,
	});
}

/*** 
 * 设置指定采购类别
 * @author jeff
 * @date 2022/12/2
 */
 export const cgDistributeTypeAdd = (params?: object) => {
	return request({
		url: '/cgDistributeType/add',
		method: 'post',
		data: params,
	});
}

/*** 
 * 分页获取物料类别列表
 * @author jeff
 * @date 2022/12/2
 */
 export const cgMaterialTypePage = (params?: object) => {
	return request({
		url: '/cgMaterialType/page',
		method: 'get',
		params: params,
	});
}

/*** 
 * 新增物料类别
 * @author jeff
 * @date 2022/12/2
 */
 export const cgMaterialTypeAdd = (params?: object) => {
	return request({
		url: '/cgMaterialType/add',
		method: 'post',
		data: params,
	});
}

/*** 
 * 修改物料类别
 * @author jeff
 * @date 2022/12/2
 */
 export const cgMaterialTypeEdit = (params?: object) => {
	return request({
		url: '/cgMaterialType/edit',
		method: 'post',
		data: params,
	});
}

/*** 
 * 删除物料类别
 * @author jeff
 * @date 2022/12/2
 */
 export const cgMaterialTypeDelete = (params?: object) => {
	return request({
		url: '/cgMaterialType/delete',
		method: 'post',
		data: params,
	});
}

/*** 
 * 材料类别未分配提示
 * @author jeff
 * @date 2022/12/2
 */
 export const cgMaterialTypeGetUnDeal = (params?: object) => {
	return request({
		url: '/cgMaterialType/getUnDeal',
		method: 'get',
		params: params,
	});
}

/*** 
 * 材料类别未分配提示
 * @author jeff
 * @date 2022/12/2
 */
 export const xmProjectinfoPage = (params?: object) => {
	return request({
		url: '/xmProjectinfo/page',
		method: 'get',
		params: params,
	});
}

/*** 
 * 获取仓库下拉框
 * @author jeff
 * @date 2022/12/2
 */
 export const xmWarehouseSelector = (params?: object) => {
	return request({
		url: '/xmWarehouse/selector',
		method: 'get',
		params: params,
	});
}

/*** 
 * 材料类别未分配提示
 * @author jeff
 * @date 2022/12/2
 */
 export const xmProjectinfoAdd = (params?: object) => {
	return request({
		url: '/xmProjectinfo/add',
		method: 'post',
		data: params,
	});
}

/*** 
 * 材料类别未分配提示
 * @author jeff
 * @date 2022/12/2
 */
 export const xmProjectinfoEdit = (params?: object) => {
	return request({
		url: '/xmProjectinfo/edit',
		method: 'post',
		data: params,
	});
}

/*** 
 * 立项查询详细信息
 * @author jeff
 * @date 2022/12/2
 */
 export const xmProjectinfoDetail = (params?: object) => {
	return request({
		url: '/xmProjectinfo/detail',
		method: 'get',
		params: params,
	});
}

/*** 
 * 撤回研发立项信息
 * @author jeff
 * @date 2022/12/2
 */
 export const xmProjectinfoDelete = (params?: object) => {
	return request({
		url: '/xmProjectinfo/delete',
		method: 'post',
		data: params,
	});
}

/*** 
 * 撤回研发立项信息
 * @author jeff
 * @date 2022/12/2
 */
 export const sysDictDataPage = (params?: object) => {
	return request({
		url: '/sysDictData/page',
		method: 'get',
		params: params,
	});
}

/*** 
 * 查询分页—字典值类型
 * @author jeff
 * @date 2022/12/2
 */
 export const sysDictTypePage = (params?: object) => {
	return request({
		url: '/sysDictType/page',
		method: 'get',
		params: params,
	});
}

/*** 
 * 新增—字典值类型
 * @author jeff
 * @date 2022/12/2
 */
 export const sysDictTypeAdd = (params?: object) => {
	return request({
		url: '/sysDictType/add',
		method: 'post',
		data: params,
	});
}

/*** 
 * 新增—字典值类型
 * @author jeff
 * @date 2022/12/2
 */
 export const sysDictTypeEdit = (params?: object) => {
	return request({
		url: '/sysDictType/edit',
		method: 'post',
		data: params,
	});
}

/*** 
 * 删除—字典值类型
 * @author jeff
 * @date 2022/12/2
 */
 export const sysDictTypeDelete = (params?: object) => {
	return request({
		url: '/sysDictType/delete',
		method: 'post',
		data: params,
	});
}

/*** 
 * 新增—字典数据
 * @author jeff
 * @date 2022/12/2
 */
 export const sysDictDataAdd = (params?: object) => {
	return request({
		url: '/sysDictData/add',
		method: 'post',
		data: params,
	});
}

/*** 
 * 编辑—字典数据
 * @author jeff
 * @date 2022/12/2
 */
 export const sysDictDataEdit = (params?: object) => {
	return request({
		url: '/sysDictData/edit',
		method: 'post',
		data: params,
	});
}

/*** 
 * 删除—字典数据
 * @author jeff
 * @date 2022/12/2
 */
 export const sysDictDataDelete = (params?: object) => {
	return request({
		url: '/sysDictData/delete',
		method: 'post',
		data: params,
	});
}

/*** 
 * 获取证书报表文件Base64，图片默认显示20条，文件显示全部
 * @author jeff
 * @date 2022/12/2
 */
 export const getReportByCertificate = (params?: object) => {
	return request({
		url: '/report/getReportByCertificate',
		method: 'get',
		params: params,
	});
}

/*** 
 * 获取物料信息下拉框
 * @author jeff
 * @date 2022/12/2
 */
 export const xmInfoMaterialSelector = (params?: object) => {
	return request({
		url: '/xmInfoMaterial/Selector',
		method: 'get',
		params: params,
	});
}

/*** 
 * 获取物料信息下拉框
 * @author jeff
 * @date 2022/12/2
 */
 export const getWarehouseStockReport = (params?: object) => {
	return request({
		url: '/report/getWarehouseStockReport',
		method: 'get',
		params: params,
	});
}

/*** 
 * 仓库物料期初期末数据汇总
 * @author jeff
 * @date 2022/12/2
 */
 export const warehouseMaterialDetail = (params?: object) => {
	return request({
		url: '/report/warehouseMaterialDetail',
		method: 'get',
		params: params,
	});
}

/*** 
 * 需求申请报表
 * @author jeff
 * @date 2022/12/2
 */
 export const demandApplyReport = (params?: object) => {
	return request({
		url: '/report/demandApplyReport',
		method: 'get',
		params: params,
	});
}

/*** 
 * 分页查询项目资料管理
 * @author jeff
 * @date 2022/12/2
 */
 export const xmFieldImportantAttach = (params?: object) => {
	return request({
		url: '/xmFieldImportantAttach/page',
		method: 'get',
		params: params,
	});
}

/*** 
 * 获取研发项目编号
 * @author jeff
 * @date 2022/12/2
 */
 export const GeProjectYF = (params?: object) => {
	return request({
		url: '/cgApplyMaterial/GeProjectYF',
		method: 'get',
		params: params,
	});
}

/*** 
 * 增加项目资料管理
 * @author jeff
 * @date 2022/12/2
 */
 export const xmFieldImportantAttachAdd = (params?: object) => {
	return request({
		url: '/xmFieldImportantAttach/add',
		method: 'post',
		data: params,
	});
}

/*** 
 * 删除项目资料管理
 * @author jeff
 * @date 2022/12/2
 */
 export const xmFieldImportantAttachDelete = (params?: object) => {
	return request({
		url: '/xmFieldImportantAttach/delete',
		method: 'post',
		data: params,
	});
}

/*** 
 * 获取员工花名册报表文件Base64，图片默认显示5条，文件显示全部
 * @author jeff
 * @date 2022/12/2
 */
 export const reportGetReportByEmp = (params?: object) => {
	return request({
		url: '/report/getReportByEmp',
		method: 'get',
		params: params,
	});
}

/*** 
 * 获取供应商下拉框
 * @author jeff
 * @date 2022/12/2
 */
 export const cgSupplierInfo = (params?: object) => {
	return request({
		url: '/cgSupplierInfo/selector',
		method: 'get',
		params: params,
	});
}

/*** 
 * 获取项目物料采购报表Base64，图片默认显示20条，文件显示全部
 * @author jeff
 * @date 2022/12/2
 */
 export const PurchaseMaterialReport = (params?: object) => {
	return request({
		url: '/report/PurchaseMaterialReport',
		method: 'get',
		params: params,
	});
}

/*** 
 * 获取资产申请(固定/间接)汇总报表，图片默认显示10条，文件显示全部
 * @author jeff
 * @date 2022/12/2
 */
 export const getReportByApplyFiexdAsset = (params?: object) => {
	return request({
		url: '/report/getReportByApplyFiexdAsset',
		method: 'get',
		params: params,
	});
}

/*** 
 * 获取资产入库汇总报表，图片默认显示10条，文件显示全部
 * @author jeff
 * @date 2022/12/2
 */
 export const getReportByStorageFiexdAsset = (params?: object) => {
	return request({
		url: '/report/getReportByStorageFiexdAsset',
		method: 'get',
		params: params,
	});
}

/*** 
 * 获取入库物料报表
 * @author jeff
 * @date 2023/01/31
 */
 export const IMMaterialReport = (params?: object) => {
	return request({
		url: '/report/IMMaterialReport',
		method: 'get',
		params: params,
	});
}

/*** 
 * 获取出库材料报表
 * @author jeff
 * @date 2023/01/31
 */
 export const EXMaterialReport = (params?: object) => {
	return request({
		url: '/report/EXMaterialReport',
		method: 'get',
		params: params,
	});
}

/*** 
 * 扣款单报表，图片默认显示10条，文件显示全部
 * @author jeff
 * @date 2023/01/31
 */
 export const getReportByCutPay = (params?: object) => {
	return request({
		url: '/report/getReportByCutPay',
		method: 'get',
		params: params,
	});
}

/*** 
 * 对账单报表，图片默认显示10条，文件显示全部
 * @author jeff
 * @date 2023/01/31
 */
 export const getReportByCheckBill = (params?: object) => {
	return request({
		url: '/report/getReportByCheckBill',
		method: 'get',
		params: params,
	});
}

/*** 
 * 预付款单报表，图片默认显示10条，文件显示全部
 * @author jeff
 * @date 2023/01/31
 */
 export const getReportByAdvanceCharge = (params?: object) => {
	return request({
		url: '/report/getReportByAdvanceCharge',
		method: 'get',
		params: params,
	});
}

/*** 
 * 付款单报表，图片默认显示10条，文件显示全部
 * @author jeff
 * @date 2023/01/31
 */
 export const getReportByPayment = (params?: object) => {
	return request({
		url: '/report/getReportByPayment',
		method: 'get',
		params: params,
	});
}

/*** 
 * 金蝶预付款单报表，图片默认显示10条，文件显示全部
 * @author jeff
 * @date 2023/01/31
 */
 export const getReportByAdvanceChargeByKingdee = (params?: object) => {
	return request({
		url: '/report/getReportByAdvanceChargeByKingdee',
		method: 'get',
		params: params,
	});
}

/*** 
 * 金蝶付款单报表，图片默认显示10条，文件显示全部
 * @author jeff
 * @date 2023/01/31
 */
 export const getReportByPaymentByKingdee = (params?: object) => {
	return request({
		url: '/report/getReportByPaymentByKingdee',
		method: 'get',
		params: params,
	});
}

/*** 
 * 导出采购单
 * @author jeff
 * @date 2023/01/31
 */
 export const YFExportDetail = (params?: object) => {
	return request({
		url: '/cgPurchaseMaterial/YFExportDetail',
		method: 'get',
		params: params,
	});
}

/*** 
 * 异常日志
 * @author jeff
 * @date 2023/02/17
 */
 export const sysExLogPage = (params?: object) => {
	return request({
		url: '/sysExLog/page',
		method: 'get',
		params: params,
	});
}

/*** 
 * 清空异常日志
 * @author jeff
 * @date 2023/02/17
 */
 export const sysExLogDelete = (params?: object) => {
	return request({
		url: '/sysLogEx/clear',
		method: 'post',
		data: params,
	});
}

/*** 
 * 查询操作日志
 * @author jeff
 * @date 2023/02/17 
 */
 export const sysOpLogPage = (params?: object) => {
	return request({
		url: '/sysOpLog/page',
		method: 'get',
		params: params,
	});
}

/*** 
 * 清空登录日志
 * @author jeff
 * @date 2023/02/17
 */
 export const sysOpLogDelete = (params?: object) => {
	return request({
		url: '/sysLogOp/clear',
		method: 'post',
		data: params,
	});
}

/*** 
 * 查询我收到的系统通知公告
 * @author jeff
 * @date 2023/02/17
 */
 export const sysNoticeReceived = (params?: object) => {
	return request({
		url: '/sysNotice/received',
		method: 'get',
		params: params,
	});
}

/*** 
 * 分页查询文件信息表
 * @author jeff
 * @date 2023/02/17
 */
 export const sysFileInfoPage = (params?: object) => {
	return request({
		url: '/sysFileInfo/page',
		method: 'get',
		params: params,
	});
}

/*** 
 * 删除文件信息表
 * @author jeff
 * @date 2023/02/17
 */
 export const sysFileInfoDelete = (params?: object) => {
	return request({
		url: '/sysFileInfo/delete',
		method: 'post',
		data: params,
	});
}

/*** 
 * 上传文件
 * @author jeff
 * @date 2023/02/17
 */
 export const sysFileInfoUpload = (params?: object) => {
	return request({
		url: '/sysFileInfo/upload',
		method: 'post',
		data: params,
	});
}

/*** 
 * 下载文件
 * @author jeff
 * @date 2023/02/17
 */
 export const sysFileInfoDownload = (params?: object) => {
	return request({
		url: '/sysFileInfo/download',
		method: 'get',
		params: params,
		responseType: 'blob'
	});
}

/*** 
 * 查看图片
 * @author jeff
 * @date 2023/02/17
 */
 export const sysFileInfoPreview = (params?: object) => {
	return request({
		url: '/sysFileInfo/preview',
		method: 'get',
		params: params,
		responseType: 'arraybuffer'
	});
}











